package com.xnyzc.lhy.task.fegin.tongcheng;

import com.xnyzc.lhy.task.config.TokenAuthConfiguration;
import com.xnyzc.lhy.task.fallback.tongcheng.TcOrderTaskServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;

@Service
@FeignClient(name = "${feign.applicationName.order}", configuration = TokenAuthConfiguration.class, fallback = TcOrderTaskServiceImpl.class)
public interface TcOrderTaskService {

    @PostMapping(value = "/task/bookingOrderService/checkOrderStatus")
    void checkOrderState();
}
